package com.xmy.cultivate.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xmy.cultivate.entity.StoreGoodsOrder;
import com.xmy.cultivate.entity.StoreGoodsOrderBatch;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 加订表 服务类
 * </p>
 *
 * @author hpiggy
 * @since 2024-08-01
 */
public interface IStoreGoodsOrderBatchService extends IService<StoreGoodsOrderBatch> {

    IPage<StoreGoodsOrderBatch> getListForSearch(IPage<?> page, @Param(Constants.WRAPPER) Wrapper wrapper, Integer affirmType);

    List<Map<String,Object>> exportOrderList(IPage<?> page, @Param(Constants.WRAPPER) Wrapper wrapper, Integer affirmType);

    IPage<StoreGoodsOrderBatch> getAlreadyOrderGroup(IPage<?> page, @Param(Constants.WRAPPER) Wrapper wrapper, Integer affirmType);

    List<StoreGoodsOrder> getAlreadyOrder(@Param(Constants.WRAPPER) Wrapper wrapper, Integer affirmType);

    Integer getMaxLessonNum(@Param(Constants.WRAPPER) Wrapper wrapper, Integer affirmType);
}
